#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>


int main()
{
  chdir("/home/smark/bit_111_-linux/111_Linux");

  FILE *fp = fopen("log.txt", "w");
  (void)fp;//直接忽略掉当fp不适用时的可能出现的警告
  fclose(fp);

  while(1)
  {
    printf("I am a process, pid: %d\n", getpid());
    sleep(1);
  }

  return 0;
}
